package com.carkeeper.user.dao;

import com.carkeeper.user.pojo.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface AdminDao extends Mapper<Employee> {

    /**
     * 查询所有用户列表
     * @return
     */
    @Select("select * from tb_employee where username <> ''")
    List<Employee> findAdminList();

    // /**
    //  * 修改用户状态
    //  * @param employeeId
    //  * @return
    //  */
    // @Update("update tb_employee set account_status = #{accountStatus} where id = #{employeeId}")
    // int updateStatus(@Param("employeeId") Integer employeeId);

}
